package work6;

/**
 * @TODO
 * @Author xu
 * 2025/2/28
 */
public class TestAccount {
    public static void main(String[] args) {
        // 创建一个银行账户实例
        BankAccount account = new BankAccount("123456", "张三", "ID123456789",
                "13800000000", "zhangsan@example.com");

        // 测试getter方法
        System.out.println("账户ID: " + account.getAccountId());
        System.out.println("户主姓名: " + account.getAccountHolderName());
        System.out.println("户主身份证号: " + account.getAccountHolderIdNumber());
        System.out.println("户主电话: " + account.getAccountHolderPhone());
        System.out.println("户主邮箱: " + account.getAccountHolderEmail());

        // 测试setter方法
        account.setAccountHolderName("李四");
        System.out.println("更新后的户主姓名: " + account.getAccountHolderName());
    }
}
